package com.learn.medium;

import java.util.List;

/**
 * <p>
 *
 * You are given two string arrays positive_feedback and negative_feedback, <br>
 * containing the words denoting positive and negative feedback, respectively. Note that no word is both positive and negative.<br>
 *
 * Initially every student has 0 points. Each positive word in a feedback report increases the points of a student by 3,<br>
 * whereas each negative word decreases the points by 1.<br>
 *
 * You are given n feedback reports, represented by a 0-indexed string array report and a 0-indexed integer array student_id, where student_id[i] represents the ID of the student who has received the feedback report report[i].
 * The ID of each student is unique.<br>
 *
 * Given an integer k, return the top k students after ranking them in non-increasing order by their points. <br>
 * In case more than one student has the same points, the one with the lower ID ranks higher.<br>
 *
 * Example 1:<br>
 *
 * Input:
 * positive_feedback = ["smart","brilliant","studious"], <br>
 * negative_feedback = ["not"], <br>
 * report = ["this student is studious","the student is smart"], <br>
 * student_id = [1,2], k = 2<br>
 * Output: [1,2]<br>
 * Explanation: <br>
 * Both the students have 1 positive feedback and 3 points but since student 1 has a lower ID he ranks higher.<br>
 * Example 2:<br>
 *
 * Input:
 * positive_feedback = ["smart","brilliant","studious"], <br>
 * negative_feedback = ["not"], <br>
 * report = ["this student is not studious","the student is smart"], <br>
 * student_id = [1,2], k = 2<br>
 * Output: [2,1]<br>
 * Explanation: <br>
 * - The student with ID 1 has 1 positive feedback and 1 negative feedback, so he has 3-1=2 points. <br>
 * - The student with ID 2 has 1 positive feedback, so he has 3 points. <br>
 * Since student 2 has more points, [2,1] is returned.<br>
 * </p>
 *
 * @author guapi
 * @date 2023-10-11
 */
public class num_2112 {
    public static void main(String[] args) {

    }

    public List<Integer> topStudents(String[] positive_feedback, String[] negative_feedback, String[] report,
            int[] student_id, int k) {
        return null;
    }
}
